#include "UDPService.hpp"

void Usage(std::string str)
{
    printf("Usage:\n\t%s %s\n",str.c_str(),"port");
}

int main(int args,char* argv[])
{
    if(args!=2)
    {
        Usage(argv[0]);
        exit(1);
    }

    uint16_t port=atoi(argv[1]);
    std::unique_ptr<UDPService> svr(new UDPService(port));
    svr->initService();
    svr->start();

    return 0;
}